package com.wfc.service.serviceImpl;

import com.wfc.dao.DishDao;
import com.wfc.dao.daoImpl.DishDaoImpl;
import com.wfc.entity.Dish;
import com.wfc.service.DishService;

import java.util.List;

public class DishServiceImpl implements DishService {
    private DishDao dishDao = new DishDaoImpl();
    @Override
    public List<Dish> getDishByTitle() {
        return dishDao.getDishByTitle();
    }

    @Override
    public boolean addDish(Dish dish) {
        return dishDao.addDish(dish);
    }

    @Override
    public Dish selectBydname(String dname) {
        return dishDao.selectBydname(dname);
    }

    @Override
    public List<Dish> selectByuname(String uname) {
        return dishDao.selectByuname(uname);
    }

    @Override
    public int update(Dish dish) {
        return dishDao.update(dish);
    }
}
